/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import Server.BUS.StringUlti;
import org.junit.*;
import static org.junit.Assert.*;

/**
 *
 * @author Trung
 */
public class StringUltiTest {
    
    public StringUltiTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of formatString method, of class StringUlti.
     */
    @Test
    public void testFormatString() {
        System.out.println("formatString");
        String s = "    Tran       \n Minh                    \nTrung";
        String expResult = "Tran Minh Trung";
        String result = StringUlti.formatString(s);
        assertTrue("Test case is false", result.equals(expResult));    
        
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }
}
